//
//  BEUCViewExtension.swift
//  BasicExtensions
//
//  Created by 范晓鑫 on 2024/5/31.
//

import UICreate

extension UCSetting where TargetType: UIView {
    /// 自定义样式
    public static func style(_ styles: BEViewStyleType..., identifier: BEViewStyleIdentifier = .default) -> Self {
        return .init { target in
            target.setStyle(BEViewStyleGroup(styles: styles), identifier: identifier)
        }
    }
}
extension UCSetting where TargetType: UIButton {
    /// 自定义样式
    public static func style(_ styles: BEViewStyleType..., identifier: BEViewStyleIdentifier = .default, for state: UIButton.State) -> Self {
        return .init { target in
            target.setStyle(BEViewStyleGroup(styles: styles), identifier: identifier, for: state)
        }
    }
}

